package br.com.duosoftware.orcamento.daos;

import br.com.duosoftware.orcamento.entidades.Gestor;
import java.util.List;

/**
 *
 * @author Renato
 * 
 */
public class GestorDAO extends DAOGenerico {
    
    public void salvarOuAtualizar(Gestor gestor) {
        super.salvarOuAtualizarPojo(gestor);
    }

    public void excluir(Gestor gestor) {
        excluirPojo(gestor);
    }

    public Gestor getGestorPorId(int id) {
        return getPojo(Gestor.class, id);
    }
    
    public List<Gestor> listarGestores() {
        return getPojos("FROM Gestor gestor ORDER BY gestor.id");
    }
}
